<?php

namespace common\models\dynamic;

use Yii;

/**
 * This is the model class for table "{{%topic_filter}}".
 *
 * @property int $id
 * @property string $content 话题内容 ##  双井号匹配话题，话题保存时去除双井号
 * @property int $created_at 创建时间
 */
class TopicFilter extends \yii\db\ActiveRecord {

    /**
     * @inheritdoc
     */
    public static function tableName() {
        return '{{%topic_filter}}';
    }

    /**
     * @inheritdoc
     */
    public function rules() {
        return [
            [['created_at'], 'integer'],
            [['content'], 'string', 'max' => 120],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'content' => '话题内容 ##  双井号匹配话题，话题保存时去除双井号',
            'created_at' => '创建时间',
        ];
    }

}
